package com.example.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.example.domain.Goods;
import com.example.domain.Order;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.util.Result;
import org.springframework.transaction.annotation.Transactional;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author author
 * @since 2024-04-24
 */
public interface IOrderService extends IService<Order> {
    @Transactional(rollbackFor = Exception.class)
    public Result addOrder(Order order, Goods goods);

    public Result updateOrder(Order order);

    public Result findById(Integer id);

    public Result selectAll();


    Result selectByBusinessOrder(String business);
}
